package controller.common;


import wt.staticData.ShortData;

import java.util.HashMap;
import java.util.Map;

/**
 * 功能:
 * 作者: 洪世成
 * 日期: 2017/9/20
 * 版权所有: admin
 */
public class StaticConstant {
    public static final String ERROR_PAGE = "welcome/error/errorPage";
    public static final String ERROR_DLG = "welcome/error/errorDlg";
    public static final String ERROR_UNAUTHORIZED = "welcome/error/unauthorized";
    public static final String ERROR_MESSAGE = "errorMessage";

    public static final String INSERT_DATE_ERROR = "添加数据异常";
    public static final String UPDATE_DATE_ERROR = "更新数据异常";
    public static final String DELETE_DATE_ERROR = "删除数据异常";
    public static final String SELECT_DATE_ERROR = "查询数据异常";

    public static final String NOT_FOUND_DATA = "未找到匹配数据";
    public static final String DATA_IS_BLANK = "数据为空或空窜";
    public static final String DATA_IS_EMPTY = "数据为空";


    public static final String EDIT_INSERT = "insert";
    public static final String EDIT_UPDATE = "update";
    public static final String EDIT_DELETE = "delete";
    public static final String EDIT_OTHER = "other";
    public static final String EDIT_URL = "url";
    public static final String EDIT_DATA = "data";
    public static final String EDIT_OPERATE_TYPE = "operateType";


    public static final Map<Short, String> EDUCATION_MAP = new HashMap<Short, String>();//最高学历
    public static final Map<Short, String> RANK_MAP = new HashMap<Short, String>();//职称
    public static final Map<Short, String> COMPANY_PROPERTY_MAP = new HashMap<Short, String>();//职称

    //    retire: {0: "在职", 1: "退休"},
//    outLander: {0: "省内", 1: "省外"},
//    boole: {0: "不是", 1: "是"},
//    sex: {0: "女", 1: "男"},
//    live: {0: "停用", 1: "启用"},
//    operationType: {0: "添加", 1: "查询", 2: "修改", 3: "删除"},
//    menuType: {0: "菜单", 1: "按钮"},
//    expertType: {0: "审查员", 1: "高级审查员", 2: "高级评审员", 3: "评审员"},
//    belongTo: {0: "企业库", 1: "专家库", 2: "员工库"},
//    leaderCrew: {0: "组员", 1: "组长"},
//    expertGrade: {AA: "AA", A: "A", B: "B", C: "C"},
//    signState: {0: "未到", 1: "到"}
    static {
        // education: {0: "博士", 1: "博士研究生", 2: "硕士", 3: "硕士研究生", 4: "本科", 5: "大专", 6: "中专", 7: "高中"},
        EDUCATION_MAP.put(ShortData.s0, "博士");
        EDUCATION_MAP.put(ShortData.s1, "博士研究生");
        EDUCATION_MAP.put(ShortData.s2, "硕士");
        EDUCATION_MAP.put(ShortData.s3, "硕士研究生");
        EDUCATION_MAP.put(ShortData.s4, "本科");
        EDUCATION_MAP.put(ShortData.s5, "大专");
        EDUCATION_MAP.put(ShortData.s6, "中专");
        EDUCATION_MAP.put(ShortData.s7, "高中");
        // rank: {0: "正高", 1: "副高", 2: "中级", 3: "其他"},
        RANK_MAP.put(ShortData.s0, "正高");
        RANK_MAP.put(ShortData.s1, "副高");
        RANK_MAP.put(ShortData.s2, "中级");
        RANK_MAP.put(ShortData.s3, "其他");
        //  companyProperty: {0: "企业", 1: "机关", 2: "事业单位", 3: "社会团体", 4: "其他"},
        COMPANY_PROPERTY_MAP.put(ShortData.s0, "企业");
        COMPANY_PROPERTY_MAP.put(ShortData.s1, "机关");
        COMPANY_PROPERTY_MAP.put(ShortData.s2, "事业单位");
        COMPANY_PROPERTY_MAP.put(ShortData.s3, "社会团体");
        COMPANY_PROPERTY_MAP.put(ShortData.s4, "其他");


    }


}
